package com.ruoyi.web.controller.admin;


import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.BdmGood;
import com.ruoyi.system.domain.BdmShareOutBonusLevelRecord;
import com.ruoyi.system.service.IBdmShareOutBonusLevelRecordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 分红池等级发放记录 前端控制器
 * </p>
 *
 * @author author
 * @since 2024-12-19
 */
@Api(tags = "分红池等级发放记录")
@RestController
@RequestMapping("/admin/shareOutBonusLevelRecord")
public class BdmShareOutBonusLevelRecordController extends BaseController {


    @Autowired
    private IBdmShareOutBonusLevelRecordService iBdmShareOutBonusLevelRecordService;

    @ApiOperation(value = "发放记录列表")
    @GetMapping("/list")
    public TableDataInfo list() {
        startPage();
        List<BdmShareOutBonusLevelRecord> list = iBdmShareOutBonusLevelRecordService.lambdaQuery().orderByAsc(BdmShareOutBonusLevelRecord::getCreateTime).list();
        return getDataTable(list);
    }
}
